package com.example.workbench.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;


import java.io.Serializable;


@Data
public class BaseEntityIdField implements Serializable {


    private static final long serialVersionUID = -3645936710283336508L;

    @TableId(
            value = "id",
            type = IdType.ASSIGN_ID
    )
    @JsonSerialize(using = ToStringSerializer.class)
    public Long id;
}
